import _fetch from "api_xukaiyu/fetch";
/**
 * 退出登录接口
 * @param { Object } data 请求参数
 * {
 *   appType undefined
 * }
 */
export function logout(data) {
  return _fetch({
    url: "app/seller/login/logout",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 登录获取验证码
 * @param { Object } data 请求参数
 * {
 *   mobile undefined
 *   appType undefined
 *   challenge undefined
 * }
 */
export function sendMobileCode(data) {
  return _fetch({
    url: "app/seller/login/sendMobileCode",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 登录
 * @param { Object } data 请求参数
 * {
 *   mobile undefined
 *   password undefined
 *   dynamicCode undefined
 *   appType undefined
 * }
 */
export function login(data) {
  return _fetch({
    url: "app/seller/login/login",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 忘记密码--发送验证码
 * @param { Object } data 请求参数
 * {
 *   mobile undefined
 * }
 */
export function forgetSendMobileCode(data) {
  return _fetch({
    url: "app/seller/login/forgetSendMobileCode",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 忘记密码--校检验证码-更新密码
 * @param { Object } data 请求参数
 * {
 *   mobile undefined
 *   code undefined
 *   newPassword undefined
 * }
 */
export function forgetCheckMobileCode(data) {
  return _fetch({
    url: "app/seller/login/forgetCheckMobileCode",
    method: "POST",
    data: data,
    headers: {}
  });
}